<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

		<title>JSP Page</title>
		<link rel="stylesheet" type="text/css" href="css/demo.css" />
		<link rel="stylesheet" type="text/css" href="css/zTreeStyle.css" />
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			
			html,
			body {
				height: 100%;
			}
			
			ul,
			li {
				list-style: none;
			}
			
			img {
				border: 0 none;
			}
			
			a:focus {
				color: #3c89fe;
			}
			
			.manage_header {
				width: 100%;
				height: 50px;
				font-family: "微软雅黑";
				font-size: 14px;
				line-height: 4;
			}
			
			.manage_header div:first-child {
				margin-left: 20px;
				float: left;
				margin-right: 15px;
			}
			
			.manage_header img {
				margin-top: 23px;
				float: left;
				margin-right: 10px;
			}
			
			.manage_header a:last-child {
				float: left;
				cursor: pointer;
				color: #3c89fe;
				text-decoration: none;
			}
			
			.deviceGroupAdd_content {
				width: 96%;
				/*height: 250px;*/
				margin: auto;
			}
			
			.deviceGroupAdd_content_top {
				width: 100%;
				height: 24px;
				background: white url(img/frame-pannel.jpg) repeat-x right top;
				border-bottom: 1px solid #E1E1E2;
				color: #393B38;
				padding: 0px 4px;
				vertical-align: middle;
				white-space: nowrap;
				border: 1px solid #DEE4EC;
				font-size: 15px;
				color: #393B38;
				font-weight: bold;
				float: left;
				padding-left: 5px;
			}
			
			.deviceGroupAdd_content_content {
				padding: 48px 50px;
			}
			
			.deviceGroupAdd_content_centent_form-a {
				padding: 4px;
				width: 80px;
				display: inline-block;
				text-align: right;
			}
			
			.deviceGroupAdd_content_centent_form_a {
				width: 253px;
				height: 23px;
				display: inline-block;
				margin-top: 5px;
				margin-bottom: 5px;
			}
			
			.deviceGroupAdd_content_centent_form_b {
				margin-top: 34px;
				float: left;
				width: 108px;
				text-align: center;
			}
			
			.deviceGroupAdd_content_centent_form-b {
				width: 253px;
				height: 82px;
				display: inline-block;
				margin-top: 5px;
				margin-bottom: 5px;
			}
			
			.deviceRevise_content_header_top {
				padding: 5px;
				border-bottom: 1px solid #cccccc;
				width: 95%;
				margin: auto;
			}
			
			.deviceRevise_content_header_top input {
				width: 80px;
				padding-bottom: 2px;
				margin-left: 12px;
				height: 25px;
				overflow: hidden;
				width: 80px;
				line-height: 23px;
				cursor: pointer;
				position: relative;
				text-align: center;
				background: #00a7f5;
				color: #ffffff;
				font-size: 13px;
				border-radius: 4px;
				border: 0px;
				margin-left: 12px;
				-moz-border-radius: 5px;
			}
			
			.userManagementAdd_div {
				padding: 5px 0;
			}
			
			.userManagementAdd_distribution {
				padding: 2px 4px;
				width: 85px;
				float: left;
			}
			
			.userManagementAdd_role {
				width: 600px;
				display: inline-block;
			}
			
			.userManagementAdd_role div {
				width: 140px;
				padding: 4px 4px;
				display: inline-block;
			}
			
			.manageAdd_content_d_content_input_div {
				height: 120px;
				width: 255px;
				background: white;
				position: absolute;
				border: 1px solid #aecaf0;
				margin-left: 93px;
				overflow-x: scroll;
				display: none;
				margin-top: -5px;
				z-index: 99;
			}
			
			.device_box {
				width: 22px;
				height: 22px;
				overflow: hidden;
				float: left;
				background: url(img/tree.gif);
				cursor: pointer;
			}
			
			.device_add {
				/*background-position: 0px -88px;*/
			}
			
			.device-add {
				background-position: 0px -88px;
			}
			
			.device_file {
				background-position: -22px -88px;
				/*background-position: -44px -88px;*/
			}
			
			.device-file {
				background-position: -44px -88px;
			}
			
			.device_frist {
				background-position: 0px -198px;
			}
			
			.device_second {
				background-position: -22px -110px;
			}
			
			.device-frist {
				background-position: 0px -220px;
			}
			
			.device-second {
				background-position: -22px -110px;
			}
			
			.divice_header_frist {
				float: left;
			}
			
			.textarea_content_centent_form_a {
				width: 253px;
				height: 150px;
				display: inline-block;
				margin-top: 5px;
				font-size: 18px;
				margin-bottom: 5px;
			}
		</style>
	</head>

	<body>
		<div class="manage_header">
			<div>日志管理</div>
			<img src="img/than.png" alt="" />
			<a href="journalPropellingMovement.jsp">推送管理</a>
		</div>
		<div class="deviceGroupAdd_content">
			<div class="deviceGroupAdd_content_top">
				编辑推送
			</div>
			<div class="deviceGroupAdd_content_content">
				<!--<form action=" " method="post" id="form1" class="" ligeruiid="form1">-->
				<div class="userManagementAdd_div">
					<div class="deviceGroupAdd_content_centent_form-a"><span style="color: red">*</span> 推送标题:</div>
					<input id="userCode" class="deviceGroupAdd_content_centent_form_a">
				</div>
				<div class="userManagementAdd_div">
					<div class="deviceGroupAdd_content_centent_form-a"><span style="color: red">*</span> 推送设备:</div>
					<select id="abc" class="deviceGroupAdd_content_centent_form_a">
						<option value="">请选择</option>
						<option value="1">全部</option>
					</select>
				</div>
				<div class="userManagementAdd_div">
					<div style="padding-top: 65px;float: left;padding-right: 4px;">
						<div class="deviceGroupAdd_content_centent_form-a"><span style="color: red">*</span> 推送内容:</div>
					</div>
					<textarea rows="10" cols="10" maxlength="10" class="textarea_content_centent_form_a"></textarea>
				</div>
				<!--</form>-->
				<div class="deviceRevise_content_header_top" style="">
					<input type="button" value="清空" option="{width:50px}" onclick="formform();">
					<input type="button" value="保存" option="{width:50px}" onclick="submitData();">
					<input type="button" value="取消" option="{width:50px}" onclick="backUserManagementAdd();">
				</div>

			</div>
		</div>
	</body>
	<script src="js/jq.js"></script>
	<script src="js/jQuery.Cookie.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$.ajax({
			url: 'paramTypeList',
			type: 'POST',
			data: {
				session: $.Cookie("session"),
				userId: $.Cookie("userId"),
				companyId: $.Cookie("companyId"),
				index: 0,
				page: 60
			},
			dataType: 'json',
			success: function(data) {
				if(data.errorCode == 0) {
					$.each(data.result.paramTypeList, function(i, value) {
						if(data.result.paramTypeList[i].type == "ORG_TYPE") {} else {
							error_tpl = '<option value="' + data.result.paramTypeList[i].paramValue + '">' + data.result.paramTypeList[i].paramValue + '</option>"'
							$("#abc").append(error_tpl);
						}
					});
				} else if(data.errorCode == -6) {
					alert("登录超时！");
					top.location.href = 'index.jsp';
				} else {
					alert("请重试！");
				}
			},
			error: function(err) {
				alert("连接服务器失败！请重新提交！");
				top.location.href = 'index.jsp';
			}
		});
		function backUserManagementAdd(){
	window.location.href = 'journalPropellingMovement.jsp';
			
		}
	</script>

</html>